<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<script>
    let test={
        name:'yanle',
        age(){
            console.log(`age is 15`)
        }
    };

    let func=Object.create(test);
</script>
</body>
</html>